import request from "../utils/request";

export function GetIndexList(data) {
  return request({
    method: "get",
    url: "/dataservice/api/index",
    params: data,
  });
}
// 获取列表
export function GetListSelect(data) {
  return request({
    method: "get",
    url: "/dataservice/api/dinner/list",
    params: data,
  });
}
// 获取某一固定值 /list/item
export function SetDashItem(data){
  return request({
    method: "post",
    url: "/dataservice/api/item",
    data,
  });
}
// 留言
export function SendMessage(data){
  return request({
    method: "post",
    url: "/dataservice/api/message",
    data,
  });
}

// 反馈
export function SendFeedBack(data){
  return request({
    method: "post",
    url: "/dataservice/api/feedback",
    data,
  });
}
// 停车位
export function GetParkCarList(data) {
  return request({
    method: "get",
    url: "/dataservice/api/parking",
    params: data,
  });
}
// 获取食堂中的人数
export function GetPeopleNumber(data){
  return request({
    method: "post",
    url: `/dataservice/api/dinner/message/getDinePersons/${data.position}/${data.time}`,
    data,
  });
}

// 获取时间
export function GetMinutsTime(data){
  return request({
    method: "post",
    url: `/dataservice/api/dinner/message/getWaitTimes/${data.position}/${data.time}`,
    data,
  });
}